package zeroj.web.validator.impl;

import zeroj.web.validator.IValidator;

/**
 * 
 * @author LYL(lyl at gmail dot com)
 *
 * @since 1.0
 *
 * 2008-9-30
 */
public class NumberValidator extends RegexValidator implements IValidator {

	public static final String PATTERN = "^\\d+(\\.\\d+){0,1}$";
	private static NumberValidator instance = new NumberValidator();
	
	private NumberValidator() {
		super(PATTERN);
	}

	public static NumberValidator getInstance() {
		
		return instance;
	}
}
